package com.xiangmo.travel.Entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("score")
public class Score implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId("score_id")
    private Long id;
    private Integer starNum;
    private Long attractionsId;
    private Long userId;
    @Builder.Default
    private Date createdAt= new Date();
}
